const helper = {
  filterSign: function (rootsElements, id) {
    for (const i in rootsElements) {
      const it = rootsElements[i]
      if (it.$type == 'bpmn:Signal' && it.id == id) {
        return it
      }
    }
    return false
  },
  deleteSign: function (rootsElements, id) {
    for (let i = 0; i < rootsElements.length; i++) {
      const it = rootsElements[i]
      if (it.$type == 'bpmn:Signal' && it.id == id) {
        rootsElements.splice(i, 1);
      }
    }
  }
}

export default helper
